import http from './index'

export function base() {
  return http.get('/system/basic')
}

export function init() {
  return http.get('/system/init')
}

export function upload(file) {
  // 组合对象
  const data = new FormData()
  data.append('image', file)

  return http.post('/general/upload/image', data)
}